
//----------------------------------------
// mouse listener
// function onMouseDown(event) {
//     this.mouseDown = true;
//     this.canvas.addEventListener('mousemove', this.onMouseMove, false);
//     this.canvas.addEventListener('mouseup', this.onMouseUp, false);
//
//     let [x, y] = this.getMousePos(event);
//     this.startx = x;
//     this.starty = y;
//     this.lastx = x;
//     this.lasty = y;
//     this.scene.onMouseDown(x,y);
// }


class Scene{
    constructor() {

    }

    init(){

        // 注册 鼠标 事件
        //  按键直接注册到 scene上
        // document.addEventListener('keydown',this.keyDown.bind(this),false);
        // document.addEventListener('keyup',this.keyUp.bind(this),false);

        //

    }
    render(){

    }

    keyDown(event){}
    keyUp(event){}
}


module.exports = Scene;
